package com.yuyou.activity.ts.service.mapper;

import com.yuyou.activity.ts.service.entity.ActivityTsUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ActivityTsUserMapper {
    int deleteByPrimaryKey(Long activityTsUserId);

    int insert(ActivityTsUser record);

    ActivityTsUser selectByPrimaryKey(Long activityTsUserId);

    int updateByPrimaryKeySelective(ActivityTsUser record);

    /**
     * 根据手机号查找用户
     * @param projectCode
     * @param phone
     * @return
     */
    ActivityTsUser selectByProjectCodeAndPhone(@Param(value="projectCode") String projectCode, @Param(value="phone") String phone);
}